﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MultipleDB.Repository
{
    /// <summary>
    /// ORM基础扩展
    /// </summary>
    internal static class SqlSugarBaseExtensions
    {
        internal static ISugarQueryable<T> WithNoLockOrNot<T>(this ISugarQueryable<T> Query, bool @IsLock = false)
        {
            if (@IsLock)
            {
                Query = Query.With(SqlWith.NoLock);
            }
            return Query;
        }
    }
}
